package com.ruoyi.system.domain.dto;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

import java.util.List;

/**
 * @author QiuYuchun
 * Date: 2023/12/18
 * Time: 16:03
 * Description: 这个是河流名录（按流域查询）工具的请求类
 */
@Data
public class RiverListDto {
    @JSONField(name = "pageIndex")
    private Integer pageIndex;

    @JSONField(name = "pageSize")
    private Integer pageSize;

    @JSONField(name = "relationFlag")
    private String relationFlag;

    @JSONField(name = "relationList")
    private List<Relation> relationList;

    @JSONField(name = "params")
    private List<Param> params;

    @Data
    public static class Relation {
        @JSONField(name = "level")
        private String level;

        @JSONField(name = "code")
        private List<String> code;
    }

    @Data
    public static class Param {
        @JSONField(name = "code")
        private String code;

        @JSONField(name = "name")
        private String name;

        @JSONField(name = "compareType")
        private Integer compareType;

        @JSONField(name = "value")
        private String value;
    }
}
